package com.lap.auth.domain.user.valueobject;

import com.lap.framework.enums.BaseEnum;
import lombok.Getter;

/**
 * 用户类型枚举
 *
 * @author Shuisheng Lao(劳水生)
 * @version 0.0.1
 */
@Getter
public enum UserType implements BaseEnum<Integer> {
  NORMAL(0, "普通用户"),
  SYSTEM(1, "系统创建用户"),
  ;
  private final Integer code;
  private final String labelZh;

  UserType(Integer code, String labelZh) {
    this.code = code;
    this.labelZh = labelZh;
  }

  public boolean canNotModify() {
    return this == UserType.SYSTEM;
  }
}
